package gstudio.ui;

import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.swt.widgets.Composite;

public class TableViewerFabrik {
	private TableViewer viewer;

	public TableViewerFabrik(Composite parent, int i) {
		viewer = new TableViewer(parent, i);
		viewer.setContentProvider(new MyViewerContentProvider());
		viewer.setLabelProvider(new MyViewerLabelProvider());
		viewer.getTable().setLinesVisible(true);
	}

	public TableViewer getViewer() {
		return viewer;
	}
}
